/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.MRP.SOProcess;

import entity.CRM.SaleOrder;
import entity.Product;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

/**
 *
 * @author Vincent
 */
@Entity
public class BackOrder implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String creationDate;
    @OneToOne
    private SaleOrder saleOrder;
    private Long leadTime;
    @OneToMany
    private List<Product> products;
    private List<Long> quantities;
    @OneToMany
    private List<WeeklyDemandAmendment> weeklyDemandAmendments;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public Long getLeadTime() {
        return leadTime;
    }

    public void setLeadTime(Long leadTime) {
        this.leadTime = leadTime;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    public List<Long> getQuantities() {
        return quantities;
    }

    public void setQuantities(List<Long> quantities) {
        this.quantities = quantities;
    }

    public SaleOrder getSaleOrder() {
        return saleOrder;
    }

    public void setSaleOrder(SaleOrder saleOrder) {
        this.saleOrder = saleOrder;
    }

    public List<WeeklyDemandAmendment> getWeeklyDemandAmendments() {
        return weeklyDemandAmendments;
    }

    public void setWeeklyDemandAmendments(List<WeeklyDemandAmendment> weeklyDemandAmendments) {
        this.weeklyDemandAmendments = weeklyDemandAmendments;
    }
    
}
